package com.loong.ems.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author 龙勇-229970722
 * @date 2025-01-02 10:08
 * @description: 岗位岗级实体类
 */

@Data
@TableName("emp_post_level") // 指定表名
public class EmpPostLevel {

    /**
     * 岗位岗级ID
     */
    @TableId(type = IdType.AUTO) // 主键自增
    private Long id;

    /**
     * 岗位名称
     */
    @Schema(description = "岗位名称")
    private String name;

    /**
     * 岗级
     */
    @Schema(description = "岗级")
    private Integer level;

    /**
     * 岗位工资
     */
    @Schema(description = "岗位工资")
    private BigDecimal salay;

    /**
     * 排序码
     */
    @Schema(description = "排序码")
    private Integer sortCode;

    /**
     * 状态 (0-正常 1-禁用)
     */
    @Schema(description = "状态 (0-正常 1-禁用)")
    private Integer status;
}
